﻿namespace ScoutersLog.Model
{
    public class Unit
    {
        // ReSharper disable UnusedAutoPropertyAccessor.Local
        //   setter required for O/R mapping
        public virtual int Id { get; private set; }
        // ReSharper restore UnusedAutoPropertyAccessor.Local
        public virtual Council ParentCouncil { get; set; }
        public virtual int UnitNumber { get; set; }
        public virtual UnitType BSAUnitType { get; set; }
        public virtual string District { get; set; }
        public virtual string CharteringOrganization { get; set; }

        public override string ToString()
        {
            return string.Format("{0} {1}", BSAUnitType.Name, UnitNumber);
        }
    }
}
